﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace ChinaClipping.ClippingMaster
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (string.IsNullOrEmpty(Properties.Settings.Default.UserName))
            {
                Application.Run(new Dlg_Config());
            }
            if (string.IsNullOrEmpty(Properties.Settings.Default.FtpAddress))
            {
                Application.Run(new Dlg_Config(1));
            }
            if (!System.IO.File.Exists(MySettings.ClientInfoFile) || !System.IO.File.Exists(MySettings.UserListFile))
            {
                Application.Run(new Dlg_Config(2));
            }
            if (Properties.Settings.Default.AutoUpdate)
            {
                Application.Run(new Form_Update());
            }
            Application.Run(new MainForm());
            Properties.Settings.Default.Save();
        }
    }
}
